package com.sf.fy.uav.order.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sf.fy.uav.order.entity.FeedbackStatusLog;
import com.sf.fy.uav.order.mapper.FeedbackStatusLogMapper;
import com.sf.fy.uav.order.service.IFeedbackStatusLogService;
import com.sf.fy.uav.task.entity.TaskStatusLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 反馈处理状态日志 前端控制器
 * </p>
 *
 * @author LTQ
 * @since 2023-06-09
 */
@RestController
@RequestMapping("/sys/feedbackStatusLog")
public class FeedbackStatusLogRest {

    @Autowired
    private IFeedbackStatusLogService iFeedbackStatusLogService;

    @Autowired
    private FeedbackStatusLogMapper feedbackStatusLogMapper;

    //    @CacheEvict(value = "CITY::FEEDBACK_STATUS_LOG", key = "#feedbackStatusLog.feedbackId")
    public void add(FeedbackStatusLog feedbackStatusLog) {
        iFeedbackStatusLogService.add(feedbackStatusLog);
    }

    public List<FeedbackStatusLog> selectListByFeedbackId(String feedbackId) {
        return iFeedbackStatusLogService.selectListByFeedbackId(feedbackId);
    }
}
